home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Visual Database / Visual Foxpro 6.0 (Ent. Edition) / Vf6ent Extractor.EXE / FFC / PIVTABLE.H < prev    next >
Encoding:
Text File  |  1998-05-26  |  3.3 KB  |  64 lines

  1. *- PIVTABLE.H
  2. *- #DEFINEs for PIVTABLE.VCX
  3.  
  4. #DEFINE L_DEBUG .F.
  5.  
  6. *- localize these
  7. #DEFINE ALERTTITLE_LOC            "Microsoft Visual FoxPro Wizards"
  8.  
  9. #DEFINE        C_EXCLDBC1_LOC        "Excel cannot create a pivot table from the selected database '"
  10. #DEFINE        C_EXCLDBC2_LOC        "' unless it is opened shared. Would you like the PivotTable Wizard to reopen it shared for you?"
  11. #DEFINE     C_STARTXL_LOC        "Starting Microsoft Excel..."
  12. #DEFINE     C_LARGEPIVOT_LOC    "You have selected a potentially large pivot table result set. "+;
  13.                                 "Do you want to continue?"
  14. #DEFINE     C_NORECORDS_LOC        "The table selected contains no records. An Excel pivot table will not be created."
  15. #DEFINE        C_LONGFNAME_LOC        "You have an old FoxPro ODBC Data Source installed which does not support FoxPro tables with long or illegal DOS path and file names. "+;
  16.                                 "We suggest that you install the VFP ODBC Driver to prevent this message in the future. "+;
  17.                                 "If you choose to continue, you must either rename or copy the selected table to one with a standard DOS file name. Would you like to copy the file now?"
  18. #DEFINE     C_COPYPROMPT_LOC    "Copy table to:"
  19. #DEFINE        C_WAITMESS_LOC        "Please be patient while the pivot table is being generated..."
  20.  
  21. #DEFINE     E_NOFORM_LOC        "No form file specified. Unable to continue."
  22. #DEFINE        E_BADMSQUERY_LOC    "Microsoft Query has not been installed properly and is needed in order to create an Excel pivot table."
  23. #DEFINE        E_FAILXL_LOC        "Failed to get Excel OLE Object."
  24. #DEFINE     E_NOREG_LOC            "Microsoft Excel is not properly registered in the Windows registration table for use with OLE."
  25. #DEFINE        E_OLDXLVER_LOC        "The automation tool does not support your version of Microsoft Excel. You must have version 5.0 or later installed."
  26. #DEFINE     E_OLEERROR_LOC        "An OLE automation error occurred. Your Excel pivot table may not be complete."
  27.  
  28. *- error checks for the automation tool
  29. #DEFINE        E_NEEDALIAS_LOC        "The Pivot Table tool requires the cAlias field to be filled."
  30. #DEFINE        E_NEEDTABLE_LOC        "The Pivot Table tool requires the cDBCTable field to be filled."
  31. #DEFINE        E_NEEDDBC_LOC        "The Pivot Table tool requires the cDBCName field to be filled."
  32. #DEFINE        E_NEEDROW_LOC        "The Pivot Table tool requires the cPivFldRow field to be filled."
  33. #DEFINE        E_NEEDCOL_LOC        "The Pivot Table tool requires the cPivFldCol field to be filled."
  34. #DEFINE        E_NEEDDATA_LOC        "The Pivot Table tool requires the cPivFldData field to be filled."
  35. #DEFINE        E_NEEDFIELDS_LOC    "The Pivot Table tool requires the aAutoFields array to be filled."
  36. #DEFINE        E_NEEDFLDLIST_LOC    "The Pivot Table tool requires the aFldList array to be filled."
  37.  
  38. *- localize?
  39. #DEFINE        OLE_XLAPP            "excel.application"
  40.  
  41. *- don't localize these        
  42. #DEFINE        C_MSQRY32            "MSQRY32.EXE"
  43. #DEFINE        C_PATH                "Path"
  44. #DEFINE     QUERY_ROOT            "Software\Microsoft\Shared Tools\MSQuery"
  45.  
  46. #DEFINE     XL_CLASS            "Excel.Sheet"
  47. #DEFINE     XLCOUNT                -4113                        && Excel count function constant
  48.  
  49. #DEFINE MAX_RECORDS        500
  50. #DEFINE MAX_PIVROWS        300
  51. #DEFINE MAX_PIVCOLS        100
  52. #DEFINE MAX_PIVPAGES    100
  53. #DEFINE MAX_PIVCELLS    10000
  54.  
  55. #DEFINE        OS_W32S                1
  56. #DEFINE        OS_NT                2
  57. #DEFINE        OS_WIN95            3
  58.  
  59. #DEFINE     HKEY_CLASSES_ROOT   -2147483648  && BITSET(0,31)
  60. #DEFINE     HKEY_CURRENT_USER   -2147483647  && BITSET(0,31)+1
  61. #DEFINE     HKEY_LOCAL_MACHINE  -2147483646  && (( HKEY ) 0x80000002 )
  62.  
  63. #DEFINE     ERROR_SUCCESS        0
  64.